package ltd.jdsoft.cute.spring.base.util;

public class StopWatch {

  private long startTime;
  private long duration;

  public void start() {
    this.startTime = System.currentTimeMillis();
  }

  public void stop() {
    this.duration = System.currentTimeMillis() - startTime;
  }

  public long getDuration() {
    return duration;
  }
}
